package com.color.admin.system.entity.dto;


import com.color.admin.common.core.constant.Constant;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @author HaiQiu
 * @date 2022/1/10
 * 重置密码实体
 */
public class RestPwd implements Serializable {

    @Schema(example = "id",description = "用户ID")
    @NotEmpty(message = "用户ID" + Constant.NOT_EMPTY)
    @Size(max = 5000, message = "ID长度只能在1-5000个字符")
    private String id;

    @Schema(example = "123456",description = "新密码")
    @NotEmpty(message = "新密码"+Constant.NOT_EMPTY)
    @Size(max = 100,message = "新密码长度只能在1-100个字符")
    private String newPwd;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNewPwd() {
        return newPwd;
    }

    public void setNewPwd(String newPwd) {
        this.newPwd = newPwd;
    }
}
